﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ASPLanchonete
{
    public partial class SiteCadastro : System.Web.UI.MasterPage
    {

        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session != null)
            {
                if (Session["IdUsuario"] == null || Session["IdUsuario"].Equals(0))
                {
                    Response.Redirect("~/Telas/LoginView.aspx");
                }
            }
            else
                Response.Redirect("~/Telas/LoginView.aspx");

        }

        protected void btnCancelar_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/Default.aspx");
        }
    }
}